home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / netzwerk / tcp-ip / usno / docs / time_set.1 < prev    next >
Encoding:
Text File  |  1996-02-26  |  1.3 KB  |  54 lines

  1. @.TH time_set 1 local
  2. @.SH NAME
  3. time_set \- set local system time to time server host system time
  4. @.SH SYNOPSIS
  5. @.B time_set <hostname>
  6. @.SH DESCRIPTION
  7. @.I Time_set
  8. communicates with an Internet time server host using BSD 
  9. Internet Stream Sockets.  It obtains the current system time
  10. of the server's system clock time as a long int in units of
  11. seconds since the Epoch (end of 1969). Normally the time
  12. server is a system that sychronizes to Master Clock time.
  13. @.PP
  14. @.I time_set
  15. is designed to be used with 
  16. @.I timesrv,
  17. the host time server's program spawned by inetd.  Before 
  18. setting your system clock with 
  19. @.I time_set
  20. you should kill /etc/cron, and you should restart it after
  21. setting local system time.   The shell script 
  22. @.I TIME_SET
  23. automates this process and can be safely run from a cronfile.
  24. @.PP
  25. @.I time_set
  26. requires the following entry in
  27. @.I /etc/services:
  28. @.PP
  29. timesrv   22375/tcp          
  30. @.PP
  31. and the following entry in 
  32. @.I /etc/inetd.conf:
  33. @.PP
  34. timesrv stream tcp  nowait  root /usr/local/bin/timesrv timesrv
  35. @.PP
  36. Inetd must be restarted with the command:
  37. @.I /etc/inetd -c
  38. @.PP
  39. @.SH EXAMPLE
  40. @.nf
  41. @.RS 5
  42. # synchronize your system clock with time server "tycho"
  43. time_set tycho
  44. @.RE
  45. @.fi
  46.  
  47. @.SH AUTHOR
  48. @.PP
  49. @.I time_set 
  50. written by Rich Schmidt, US Naval Observatory, 1992.
  51.  
  52. @.SH "SEE ALSO"
  53. timesrv(1), time_set(1), time(2), stime(2). 
  54.